#include "QInhibitorSynapse.h"

QInhibitorSynapse::QInhibitorSynapse()
{
    type = 5;
    memPot = 0;
    tempMemPot = 0;
    this->setMultiplier(300);
    this->setRelaxTime(2000);
    inhibitorModel = new QInhibitorSynapseModel;
}

int QInhibitorSynapse::getType(void)
{
    return type;
}

void QInhibitorSynapse::rotMemPot(void)
{
    inhibitorModel->setTS(relaxTime);
    inhibitorModel->setNuIn(tempMemPot);
    memPot = multiplier*(inhibitorModel->calculateNu());
    tempMemPot = 0;
    emit memPotChanged(memPot);
}
